<template>
  <div>
    <nuxt />
  </div>
</template>
<script>
import { znk } from '@/assets/util/public'
export default {
  layout: 'admin',
   middleware: 'settoken',
  data() {
    return {
    }
  },
  fetch({ store, params }) {
    // console.log('store1---', znk.getCookie('token'))
    store.commit('TOKEN', znk.getCookie('token'))
    // console.log('store2--', store)
    // return axios.get('http://my-api/stars')
    // .then((res) => {
    //   store.commit('setStars', res.data)
    // })
  },
}
</script>